package org.hackystat.ui.telemetryviewer.gwt.client;

import com.google.gwt.user.client.ui.Button;

/**
 * Represents an Span button widget.
 *
 * @author Pavel Senin.
 *
 */
public class SpanButton
    extends Button {

  private String name;

  /**
   * Instantiates the SpanButton widget with given name and span value.
   *
   * @param name the button name to be displayed.
   */
  public SpanButton(String name) {
    super();
    super.setText(name);
    this.name = name;
  }

  /**
   * Reports the name.
   *
   * @return name value.
   */
  public String getName() {
    return this.name;
  }

}
